/*
 *     This file is part of Neptune Network Emulator.
 *
 *  Neptune Network Emulator is free software: 
 *  you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Neptune Network Emulator is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Neptune Network Emulator.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
/**
 *
 */
package neptune.web.server.services;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Luigi Lorenzo Arpino [luigiarpino@yahoo.it]
 *
 */
public class SSHServletService extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	

	
	public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException
	{
		response.setContentType("text/html");
		//response.setContentType("application/x-java-jnlp-file");
		String server=request.getParameter("server");
		String user=request.getParameter("user");
		String password=request.getParameter("pwd");
		String command=request.getParameter("cmd");
		
		PrintWriter out = response.getWriter();
		
		out.println("<html>");
		out.println("<head>");
		out.println("<title>Io sono un titolo!</title>");
		out.println("</head>");
		out.println("<body bgcolor=\"white\">");
		out.println("<h1>server="+server+"</h1>");
		out.println("<h1>user="+user+"</h1>");
		out.println("<h1>password="+password+"</h1>");
		out.println("<h1>command="+command+"</h1>");
		out.println("</body>");
		out.println("</html>");
	}

}
